package com.rico.plumelog.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//https://gitee.com/plumeorg/plumelog
@RestController
@RequestMapping("/plumelog")
@Slf4j
public class PlumelogController {
	/**
     * info 日志
     * @return
     */
    @GetMapping("/info")
    public String infoLog(String key) {
        log.info("info 日志");
        return "success";
    }

    /**
     * error 日志
     * @return
     */
    @GetMapping("/error")
    public String errorLog(String key,String value) {
    	log.info("error 日志");
        return "success";
    }
}
